<?php

App::uses('AppModel', 'Model');

class Cart extends AppModel {

    public $table = 'carts';
    public $actsAs = array('CakePtbr.AjusteData', 'CakePtbr.AjusteFloat', 'Search.Searchable');
    public $filterArgs = array(
        'id' => array('type' => 'value'),
        'sessionid' => array('type' => 'like'),
        'product_id' => array('type' => 'value'),
        'name' => array('type' => 'like'),
        'weight' => array('type' => 'like'),
        'price' => array('type' => 'like'),
        'quantity' => array('type' => 'value'),
        'weight_total' => array('type' => 'like'),
        'subtotal' => array('type' => 'like'),
        'created' => array('type' => 'like'),
        'modified' => array('type' => 'like'),
    );
    public $belongsTo = array(
        'Product' => array(
            'className' => 'Product',
            'foreignKey' => 'product_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );
}
